# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=device-google-veyron
pkgdesc="Google Veyron Chromebooks"
pkgver=7
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	alsa-ucm-conf>=1.2.7.1-r0
	depthcharge-tools
	linux-google-veyron
	postmarketos-base
	postmarketos-cros-common
"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
makedepends="devicepkg-dev"
source="deviceinfo modules-initfs"

# provides and replaces to switch old installations to this package
provides="
	device-google-veyron-fievel=$pkgver-r$pkgrel
	device-google-veyron-jaq=$pkgver-r$pkgrel
	device-google-veyron-jerry=$pkgver-r$pkgrel
	device-google-veyron-mickey=$pkgver-r$pkgrel
	device-google-veyron-mighty=$pkgver-r$pkgrel
	device-google-veyron-minnie=$pkgver-r$pkgrel
	device-google-veyron-speedy=$pkgver-r$pkgrel
	device-google-veyron-tiger=$pkgver-r$pkgrel
"
replaces="
	device-google-veyron-fievel
	device-google-veyron-jaq
	device-google-veyron-jerry
	device-google-veyron-mickey
	device-google-veyron-mighty
	device-google-veyron-minnie
	device-google-veyron-speedy
	device-google-veyron-tiger
"

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="WiFi/BT firmware"
	depends="linux-firmware-mrvl firmware-google-veyron-brcm"
	mkdir "$subpkgdir"
}


sha512sums="
abeebda841ae33d50008b891b4a29ccf4a7cf7be240b5913b701409e8621aa7210f685543b8ab7a9778b311359a197b4429af2b559716fa130d3af8447bef61d  deviceinfo
be3e804fa538d9d377c637094dcf95e503e8a156fa71676a9e78abc0e290595dfdaa70b5642df721ebcdd3daa04d14e0c61d9bab6f78cb1dbd669404abc3a56d  modules-initfs
"
